import Vue from "vue"
import App from "./App.vue"
import Vuex from "vuex"
import "./assets/tailwind.css"

Vue.config.productionTip = false

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    count: 0,
  },
  getters: {
    getCount: (state) => state.count,
  },
  mutations: {
    increment: (state) => {
      state.count++
    },
  },
  actions: {
    incrementAction: ({ commit }) => {
      commit("increment")
    },
  },
})

new Vue({
  render: (h) => h(App),
  store: store,
}).$mount("#app")
